package com.kuqi.blog.controller;

import com.kuqi.blog.dao.pojo.SysUser;
import com.kuqi.blog.util.UserThreadLocal;
import com.kuqi.blog.vo.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:kuqi
 * @createTime:2021/12/15 20:26
 * @description:用于测试拦截器
 */

@RestController
@RequestMapping("/test")
public class TestController {

    @RequestMapping
    public Result test(){
        SysUser sysUser = UserThreadLocal.get();
        System.out.println(sysUser);
        return Result.success(null);
    }
}
